D3D_BOX

This command is used to draw a 2D box. An optional colour value can be provided to override the colour set by D3D_COLOR.
By specifying four colours, a box interpolating between them can be drawn.
All versions of this command use the alpha component of the respective colours.

SYNTAX

D3D_BOX Left, Top, Right, Bottom
D3D_BOX Left, Top, Right, Bottom, Colour
D3D_BOX Left, Top, Right, Bottom, Top Left Colour, Top Right Colour, Bottom Left Colour, Bottom Right Colour

RELATED INFO

D3DFunc Commands Menu
Index

EXAMPLE

View Showcase Example